#!/bin/bash

#https://wiki.winehq.org/Ubuntu

sudo dpkg --add-architecture i386
curl -s https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

#Ubuntu 20.04 focal
sudo add-apt-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

apt update

apt -y install --install-recommends winehq-stable
#apt -y install --install-recommends winehq-devel

apt -y install winetricks
#winetricks allfonts
#winetricks vcrun6

apt -y install playonlinux


sudo sh -c "echo '[Desktop Entry]
Type=Application
Name=Explorer
Exec=sh -c '\"'\"'LC_ALL=\"ru_RU.CP1251\" wine explorer.exe'\"'\"'
Icon=wine
Terminal=false
' > /usr/share/applications/wine.explorer.desktop"



